import common from "./common";
const config = (_this) => {
  const tbPower = _this.common.isHasPower("tbr");
  // const spPower = _this.common.isHasPower("spr");
  return {
    // 列表筛选
    formData: [
      ...common.config.formData
    ],
    // 列表表格
    table: {
      isSelectFlag: false,
      compRef: "yjrwlb",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: true,
      loading: false,
      title: "临时演练计划列表",
      actions: [
        {
          id: "add",
          text: "新增",
          type: "primary",
          btnAttr: { size: "small" }
        },
        {
          id: "export",
          text: "导出",
          btnAttr: { size: "small" }
        }
      ],
      tableData: [],
      columns: [
        {
          prop: "associatedDrillName",
          label: "关联年计划",
          align: "left",
          "min-width": "200px",
          render: (h, { row }) => {
            return (<div>
              {<span style='color:#3561fd;cursor:pointer;text-decoration: underline;' {...{
                on: {
                  click: () => {
                    _this.associatedDrillName(row.id);
                  }
                }
              }}>
                {row.associatedDrillName}
              </span>}
            </div>);
          }
        },
        {
          prop: "drillProjectName",
          label: "演练项目",
          align: "left",
          "min-width": "180px"
        },
        {
          prop: "organisedUnitName",
          label: "主办单位",
          align: "left",
          "min-width": "120px"
        },
        {
          prop: "drillContent",
          label: "演练内容",
          align: "left",
          "min-width": "300px"
        },
        {
          prop: "drillType",
          label: "演练类型",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "drillNature",
          label: "演练性质",
          align: "center",
          "min-width": "100px"
        },
        {
          prop: "drillUnit",
          label: "参演单位",
          align: "left",
          "min-width": "240px"
        },
        {
          prop: "planDrillCount",
          label: "计划演练人数",
          align: "center",
          "min-width": "80px"
        },
        {
          prop: "actualDrillCount",
          label: "实际参演人员",
          align: "center",
          "min-width": "80px",
          render: (h, { row }) => {
            return (<div>
              {<span style='color:#3561fd;cursor:pointer;text-decoration: underline;' {...{
                on: {
                  click: () => {
                    _this.getActualDrillCount(row.id);
                  }
                }
              }}>
                {row.actualDrillCount}
              </span>}
            </div>);
          }
        },
        {
          prop: "planCompleteTime",
          label: "计划完成时间",
          align: "left",
          "min-width": "130px"
        },
        {
          prop: "flowStatus",
          label: "状态",
          align: "center",
          "min-width": "80px"
        },
        {
          prop: "cz",
          label: "操作",
          align: "center",
          fixed: "right",
          "min-width": "180px",
          render: (h, scope) => {
            let arr = [];
            const isHasPower = _this.common.isNextUser(scope.row.nextAssignee);
            if (["1", "4", "44", "15"].includes(scope.row.flowCode) && tbPower) {
              arr = ["编辑", "删除"];
            } else if (["2", "13"].includes(scope.row.flowCode) && isHasPower) {
              arr = ["审核"];
            } else if (["22"].includes(scope.row.flowCode) && isHasPower) {
              arr = ["通知审核"];
            } else if (scope.row.flowCode === "3" && isHasPower) {
              arr = ["下发通知"];
            } else if (scope.row.flowCode === "12" && isHasPower) {
              arr = ["人员上报"];
            } else if (scope.row.flowCode === "14") {
              arr = ["上传结果", "方案脚本"];
              if (scope.row.attachResultInfo && scope.row.scenarioScriptFile) {
                arr = ["查看结果", "查看脚本"];
              } else if (scope.row.scenarioScriptFile) {
                arr = ["上传结果", "查看脚本"];
              } else if (scope.row.attachResultInfo) {
                arr = ["查看结果", "方案脚本"];
              }
            }
            return (
              <div>
                {
                  arr.map(item => {
                    return (
                      <span style='color:#3561fd;cursor:pointer;margin:0 5px' {...{
                        on: {
                          click: () => {
                            _this.actionHandle(item, scope);
                          }
                        }
                      }}>
                        {item}
                      </span>
                    );
                  })
                }
              </div >
            );
          }
        }
      ],
      tableAttr: {
        "max-height": "430px",
        height: "430px",
        stripe: false,
        border: true,
        fit: true,
        "show-header": true,
        "highlight-current-row": true,
        "cell-style": {
          "font-size": "16px"
        },
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          border: "1px solid #ccc",
          color: "#333333",
          "font-size": "18px"
        }
      },
      // 分页信息
      paginationAtrrs: {
        total: 0,
        "background": true,
        layout: "prev, pager, next",
        "current-page": 1,
        "page-size": 10
      }
    },
    // 月度演练计划编辑、审批
    monthConfig: {
      // 月度演练计划弹窗
      dialogConfig: {
        title: "月度演练计划",
        isShow: false,
        type: "",
        btnList: [
          {
            name: "提交",
            type: "primary",
            id: "submit",
            size: "mini"
          },
          {
            name: "保存",
            id: "save",
            size: "mini"
          },
          {
            name: "取消",
            id: "cancel",
            size: "mini"
          }
        ]
      },
      // 折叠面板
      titleConfig: [
        {
          title: "年度演练信息",
          name: "1",
          slot: "slot1"
        },
        {
          title: "月度演练信息",
          name: "2",
          slot: "slot2"
        },
        {
          title: "填报信息",
          name: "3",
          slot: "slot3"
        }
      ],
      activeNames: ["1", "2", "3", "4"],
      formConfig: {
        formData: [
          {
            type: "input",
            label: "演练项目",
            prop: "drillProjectName",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "主办单位",
            prop: "organisedUnitName",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "演练事件类别",
            prop: "drillCategory",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "计划完成时间",
            prop: "planCompleteTime",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "参演单位",
            prop: "drillUnit",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          }
        ]
      },
      formConfig1: {
        formData: [
          {
            type: "input",
            label: "演练项目",
            prop: "drillProjectName",
            class: "half",
            lableWidth: "140px"
          },
          {
            type: "select",
            label: "演练类型",
            dic: "pxyl_lx",
            prop: "drillTypeCode",
            name: "drillType",
            class: "half",
            lableWidth: "140px",
            option: []
          },
          {
            type: "select",
            label: "演练性质",
            dic: "dic_ylxz",
            prop: "drillNatureCode",
            name: "drillNature",
            class: "half",
            lableWidth: "140px",
            option: []
          },
          {
            type: "dataPicker",
            label: "计划完成时间",
            prop: "planCompleteTime",
            class: "half",
            lableWidth: "140px",
            dateType: "datetime"
          },
          {
            type: "selectTree",
            label: "参演单位",
            prop: "drillUnit",
            name: "drillUnitIds",
            keyWord: "keyWord1",
            treeRef: "treeRef1",
            commonClick: true,
            clickClose: false,
            title: "参演单位选择",
            choose: true,
            ref: "tree_select",
            class: "sjgy",
            multiple: true,
            lableWidth: "140px",
            option: [],
            treeData: {
              data: [],
              default: ["1"],
              checked: ["1516830294278176"],
              props: {
                children: "children",
                label: "orgName",
                value: "id"
              }
            }
          },
          {
            type: "textarea",
            autosize: true,
            label: "演练内容",
            prop: "drillContent",
            class: "sjgy",
            lableWidth: "140px"
          }
        ],
        rules: {
          drillTypeCode: [
            { required: true, message: "请选择演练类型", trigger: "blur" }
          ],
          drillNatureCode: [
            { required: true, message: "请选择演练性质", trigger: "blur" }
          ],
          planCompleteTime: [
            { required: true, message: "请选择计划完成时间", trigger: "blur" }
          ],
          drillUnitIds: [
            { required: true, message: "请选择参演单位", trigger: "change" }
          ]
        }
      },
      formConfig2: {
        formData: [
          {
            type: "input",
            label: "填报人",
            prop: "fillUser",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "单位及部门",
            prop: "fillUserDept",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "填报时间",
            prop: "fillTime",
            class: "third",
            lableWidth: "140px",
            dateType: "datetime",
            isDisabled: true
          }
        ]
      },
      formConfig3: {
        formData: []
      }
    },
    // 下发通知
    issueConfig: {
      // 下发通知弹窗
      dialogConfig: {
        title: "演练通知",
        isShow: false,
        type: "",
        btnList: [
          {
            name: "下发",
            type: "primary",
            id: "handleIssue",
            size: "mini"
          },
          {
            name: "保存",
            id: "save",
            size: "mini"
          },
          {
            name: "取消",
            id: "cancel",
            size: "mini"
          }
        ]
      },
      // 折叠面板
      titleConfig: [
        {
          title: "基本信息",
          name: "1",
          slot: "slot1"
        },
        {
          title: "通知信息",
          name: "2",
          slot: "slot2"
        },
        {
          title: "参演单位",
          name: "3",
          slot: "slot3"
        },
        {
          title: "填报信息",
          name: "4",
          slot: "slot4"
        }
      ],
      activeNames: ["1", "2", "3", "4", "5"],
      formConfig: {
        formData: [
          {
            type: "input",
            label: "演练项目",
            prop: "drillProjectName",
            class: "half",
            lableWidth: "150px",
            isDisabled: true
          },
          {
            type: "input",
            label: "演练类型",
            prop: "drillType",
            class: "half",
            lableWidth: "150px",
            isDisabled: true
          },
          {
            type: "input",
            label: "计划演练人数",
            prop: "planDrillCount",
            class: "half",
            lableWidth: "150px",
            isDisabled: true
          },
          {
            type: "input",
            label: "主办单位",
            prop: "organisedUnitName",
            class: "half",
            lableWidth: "150px",
            isDisabled: true
          },
          {
            type: "input",
            label: "计划完成时间",
            prop: "planCompleteTime",
            class: "half",
            lableWidth: "150px",
            isDisabled: true
          }
        ]
      },
      formConfig1: {
        formData: [
          {
            type: "input",
            label: "通知名称",
            prop: "noticeName",
            class: "sjgy",
            lableWidth: "150px"
          },
          {
            type: "textarea",
            autosize: true,
            label: "演练地点",
            prop: "drillAddress",
            class: "sjgy",
            lableWidth: "150px"
          },
          {
            type: "textarea",
            autosize: true,
            label: "主要内容及议程",
            prop: "content",
            class: "sjgy",
            lableWidth: "150px"
          },
          {
            type: "dataPicker",
            label: "演练时间",
            prop: "drillStartTime",
            class: "half",
            lableWidth: "150px",
            dateType: "datetimerange",
            start: "drillStartTime",
            end: "drillEndTime"
          },
          {
            type: "select",
            label: "联系人",
            prop: "contactId",
            name: "contact",
            class: "half",
            lableWidth: "150px",
            option: []
          },
          {
            type: "textarea",
            autosize: true,
            label: "相关事项",
            prop: "otherInfo",
            class: "sjgy",
            lableWidth: "150px"
          },
          {
            type: "upload",
            label: "演练脚本",
            prop: "drillScript",
            slot: "upload",
            action: "#",
            class: "sjgy",
            customize: true,
            tip: "支持jpg/png/pdf/doc等文件，且不超过50mb",
            limit: 1,
            lableWidth: "150px"
          }
        ],
        rules: {
          noticeName: [
            { required: true, message: "请输入通知名称", trigger: "blur" }
          ],
          drillAddress: [
            { required: true, message: "请输入演练地点", trigger: "blur" }
          ],
          content: [
            { required: true, message: "请输入主要内容及议程", trigger: "blur" }
          ],
          drillStartTime: [
            { required: true, message: "请选择演练时间", trigger: "blur" }
          ],
          contactId: [
            { required: true, message: "请选择联系人", trigger: "blur" }
          ]
        }
      },
      tbxxFormConfig: {
        formData: [
          {
            type: "input",
            label: "填报人",
            prop: "fillUser",
            class: "third",
            lableWidth: "150px",
            isDisabled: true
          },
          {
            type: "input",
            label: "单位及部门",
            prop: "fillUserDept",
            class: "third",
            lableWidth: "150px",
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "填报时间",
            prop: "fillTime",
            class: "third",
            lableWidth: "150px",
            dateType: "datetime",
            isDisabled: true
          }
        ]
      },
      shxxFormConfig: {
        formData: []
      }
    },
    // 人员上报弹窗
    personnelConfig: {
      // 人员上报弹窗
      dialogConfig: {
        title: "人员上报",
        isShow: false,
        type: "",
        btnList: [
          {
            name: "提交",
            type: "primary",
            id: "submit",
            size: "mini"
          },
          {
            name: "保存",
            id: "save",
            size: "mini"
          },
          {
            name: "取消",
            id: "cancel",
            size: "mini"
          }
        ]
      },
      // 折叠面板
      titleConfig: [
        {
          title: "基本信息",
          name: "1",
          slot: "slot1"
        },
        {
          title: "通知信息",
          name: "2",
          slot: "slot2"
        },
        {
          title: "参演人员",
          name: "3",
          slot: "slot3"
        },
        {
          title: "填报信息",
          name: "4",
          slot: "slot4"
        }
      ],
      activeNames: ["1", "2", "3", "4", "5"],
      formConfig: {
        formData: [
          {
            type: "input",
            label: "演练项目",
            prop: "drillProjectName",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "演练类型",
            prop: "drillType",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "计划演练人数",
            prop: "planDrillCount",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "主办单位",
            prop: "organisedUnitName",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "计划完成时间",
            prop: "planCompleteTime",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          }
        ]
      },
      formConfig1: {
        formData: [
          {
            type: "input",
            label: "通知名称",
            prop: "noticeName",
            class: "sjgy",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "textarea",
            autosize: true,
            label: "演练地点",
            prop: "drillAddress",
            class: "sjgy",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "textarea",
            autosize: true,
            label: "主要内容及议程",
            prop: "content",
            class: "sjgy",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "演练时间",
            prop: "ylxz",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "联系人",
            prop: "contact",
            class: "half",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "textarea",
            autosize: true,
            label: "相关事项",
            prop: "otherInfo",
            class: "sjgy",
            lableWidth: "140px",
            isDisabled: true
          }
        ]
      },
      formConfig2: {
        formData: [
          {
            type: "btnInput",
            label: "人员上报",
            prop: "fillUser",
            noBorder: true,
            hidden: false,
            close: true,
            class: "third",
            value: "请选择",
            lableWidth: "140px"
          }
        ]
      },
      formConfig3: {
        formData: [
          {
            type: "input",
            label: "填报人",
            prop: "fillUser",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "单位及部门",
            prop: "fillUserDept",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "填报时间",
            prop: "fillTime",
            class: "third",
            lableWidth: "140px",
            dateType: "datetime",
            isDisabled: true
          }
        ]
      },
      formConfig4: {
        formData: []
      },
      table: {
        isSelectFlag: false,
        compRef: "yxry",
        isSequenceFlag: true,
        isShowPage: false,
        resetFlag: false,
        loading: false,
        autoHeight: true,
        title: "",
        tableData: [],
        columns: [
          {
            prop: "unit",
            label: "所属单位",
            align: "center"
          },
          {
            prop: "name",
            label: "姓名",
            align: "center"
          },
          {
            prop: "contact",
            label: "联系方式",
            align: "center"
          },
          {
            prop: "memberType",
            label: "人员性质",
            align: "center"
          },
          {
            prop: "memberMajor",
            label: "人员专业",
            align: "center"
          },
          {
            prop: "memberAbility",
            label: "特种作业能力",
            align: "center"
          },
          {
            prop: "entryTime",
            label: "入岗时间",
            align: "center"
          }
        ],
        tableAttr: {
          "max-height": "550px",
          "stripe": false,
          "border": true,
          "fit": true,
          "show-header": true,
          "highlight-current-row": false,
          "cell-style": {
            "font-size": "16px"
          },
          "header-cell-style": {
            "text-align": "center",
            "background-color": "#B1C8F9",
            "border": "1px solid #ccc",
            "font-size": "16px"
          }
        }
      }
    },
    // 人员选择弹窗信息
    ChooseConfig: {
      title: "人员选择",
      isShow: false,
      checkSelect: true,
      type: "",
      btnList: [
        {
          id: "confirm",
          name: "确认",
          type: "primary",
          size: "mini"
        },
        {
          id: "cancel",
          name: "取消",
          size: "mini"
        }
      ],
      index: 0,
      unit: "名人员"
    },
    // 人员选择弹窗信息
    ChooseConfig1: {
      title: "人员选择",
      isShow: false,
      checkSelect: true,
      type: "",
      with: "60%",
      btnList: []
    },
    // 人员选择
    PersonnelFormConfig: {
      formData: [
        {
          type: "input",
          label: "姓名",
          prop: "name",
          class: "half",
          lableWidth: "140px"
        },
        {
          type: "select",
          label: "人员性质",
          prop: "memberType",
          dic: "memberType",
          class: "half",
          lableWidth: "140px",
          option: [
            {
              label: "主业",
              value: "主业"
            },
            {
              label: "副业",
              value: "副业"
            }
          ]
        },
        {
          type: "select",
          label: "人员专业",
          prop: "memberMajor",
          dic: "memberMajor",
          class: "half",
          lableWidth: "140px",
          option: []
        },
        {
          type: "selectTree",
          label: "所属单位",
          prop: "accessUnit",
          name: "accessUnitId",
          title: "所属单位选择",
          keyWord: "units", // 搜索关键字，同一表单需要绑定唯一值
          treeRef: "unitRef", // 树结构绑定的ref，同一表单需绑定唯一值
          commonClick: true, // 是否使用默认点击事件，
          clickClose: false, // 判断是否点击选择单位后是否立刻关闭弹窗，
          choose: false, // 判断是否可以多选
          ref: "unit_select", // 同一表单需要绑定唯一ref，用于关闭对应弹窗
          class: "half",
          lableWidth: "140px",
          treeData: {
            data: [],
            default: ["1"],
            checked: [],
            props: {
              children: "children",
              label: "orgName",
              value: "id"
            }
          }
        }
      ]
    },
    PersonnelTableConfig: {
      isSelectFlag: true,
      compRef: "playerTabel",
      isSequenceFlag: true,
      isShowPage: true,
      resetFlag: false,
      loading: false,
      title: "",
      selectColumnAttr: {
        "reserve-selection": true
        // "selectable": (row) => {
        //   return row.occupation === 1;
        // }
      },
      tableData: [],
      columns: [
        {
          prop: "accessUnit",
          label: "所属单位及部门",
          align: "center"
        },
        {
          prop: "name",
          label: "姓名",
          align: "center"
        },
        {
          prop: "contact",
          label: "联系方式",
          align: "center"
        },
        {
          prop: "memberType",
          label: "人员性质",
          align: "center"
        },
        {
          prop: "memberMajor",
          label: "人员专业",
          align: "center"
        },
        {
          prop: "memberAbility",
          label: "特种作业能力",
          align: "center"
        },
        {
          prop: "entryTime",
          label: "入岗时间",
          align: "center"
        }
      ],
      tableAttr: {
        "row-key": (row) => {
          // console.log(row, "????row");
          return row.id;
        },
        "max-height": "550px",
        // "height": "400px",
        "stripe": false,
        "border": true,
        "fit": true,
        "show-header": true,
        "highlight-current-row": false,
        "cell-style": {
          "font-size": "16px"
        },
        "row-style": ({ row, rowIndex }) => _this.checkRowStyle(row, rowIndex),
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          "border": "1px solid #ccc",
          "font-size": "16px"
        }
      },
      // 分页信息
      paginationAtrrs: {
        total: 0,
        "background": true,
        layout: "prev, pager, next",
        "current-page": 1,
        "page-size": 10
      }
    },
    PersonnelTableConfig1: {
      isSelectFlag: false,
      compRef: "playerTabel",
      isSequenceFlag: true,
      isShowPage: false,
      resetFlag: false,
      loading: false,
      autoHeight: true,
      title: "",
      tableData: [],
      columns: [
        {
          prop: "accessUnit",
          label: "所属单位及部门",
          align: "center"
        },
        {
          prop: "name",
          label: "姓名",
          align: "center"
        },
        {
          prop: "contact",
          label: "联系方式",
          align: "center"
        },
        {
          prop: "memberType",
          label: "人员性质",
          align: "center"
        },
        {
          prop: "memberMajor",
          label: "人员专业",
          align: "center"
        },
        {
          prop: "memberAbility",
          label: "特种作业能力",
          align: "center"
        },
        {
          prop: "entryTime",
          label: "入岗时间",
          align: "center"
        }
      ],
      tableAttr: {
        "row-key": (row) => {
          // console.log(row, "????row");
          return row.id;
        },
        "stripe": false,
        "border": true,
        "fit": true,
        "show-header": true,
        "highlight-current-row": false,
        "cell-style": {
          "font-size": "16px"
        },
        "row-style": ({ row, rowIndex }) => _this.checkRowStyle(row, rowIndex),
        "header-cell-style": {
          "text-align": "center",
          "background-color": "#B1C8F9",
          "border": "1px solid #ccc",
          "font-size": "16px"
        }
      }
    },
    // 临时演练新增
    temporaryDrillAddConfig: {
      // 临时演练新增弹窗
      dialogConfig: {
        title: "临时演练计划",
        isShow: false,
        type: "",
        btnList: [
          {
            name: "提交",
            type: "primary",
            id: "submit",
            size: "mini"
          },
          {
            name: "保存",
            id: "save",
            size: "mini"
          },
          {
            name: "取消",
            id: "cancel",
            size: "mini"
          }
        ]
      },
      // 折叠面板
      titleConfig: [
        {
          title: "演练信息",
          name: "1",
          slot: "slot1"
        },
        {
          title: "填报信息",
          name: "2",
          slot: "slot2"
        }
      ],
      activeNames: ["1", "2", "3", "4"],
      formConfig: {
        formData: [
          {
            type: "input",
            label: "演练项目",
            prop: "drillProjectName",
            class: "half",
            lableWidth: "140px"
          },
          // {
          //   type: "select",
          //   label: "主办单位",
          //   prop: "organisedUnitId",
          //   name: "organisedUnitName",
          //   class: "half",
          //   lableWidth: "140px",
          //   option: []
          // },
          {
            type: "selectTree",
            label: "主办单位",
            prop: "organisedUnitName",
            name: "organisedUnitId",
            keyWord: "keyWord",
            treeRef: "treeRef",
            commonClick: true,
            isSplice: true,
            chooseUnit: true,
            clickClose: true,
            title: "主办单位选择",
            choose: false,
            ref: "tree_select",
            class: "half",
            lableWidth: "140px",
            option: [],
            treeData: {
              data: [],
              default: ["1"],
              checked: [],
              props: {
                children: "children",
                label: "orgName",
                value: "id"
              }
            }
          },
          {
            type: "select",
            label: "演练性质",
            dic: "dic_ylxz",
            prop: "drillNatureCode",
            name: "drillNature",
            class: "half",
            lableWidth: "140px",
            option: []
          },
          {
            type: "select",
            label: "演练类型",
            dics: "pxyl_lx",
            prop: "drillTypeCode",
            name: "drillType",
            class: "half",
            lableWidth: "140px",
            option: []
          },
          {
            type: "select",
            label: "关联年计划",
            prop: "associatedDrillId",
            name: "associatedDrillName",
            class: "half",
            lableWidth: "140px",
            option: []
          },
          {
            type: "dataPicker",
            label: "计划完成时间",
            prop: "planCompleteTime",
            class: "half",
            dateType: "datetime",
            pickerType: "date",
            format: "yyyy-MM-dd",
            lableWidth: "140px"
          },
          {
            type: "selectTree",
            label: "参演单位",
            prop: "drillUnit",
            name: "drillUnitIds",
            keyWord: "keyWord2",
            treeRef: "treeRef2",
            commonClick: false,
            clickClose: false,
            title: "人员选择",
            choose: true,
            ref: "tree_select1",
            class: "sjgy",
            multiple: true,
            lableWidth: "140px",
            option: [],
            treeData: {
              data: [],
              default: ["1"],
              checked: ["1516830294278176"],
              props: {
                children: "children",
                label: "orgName",
                value: "id"
              }
            }
          },
          {
            type: "textarea",
            autosize: true,
            label: "主要演练内容",
            prop: "drillContent",
            class: "sjgy",
            lableWidth: "140px"
          }
        ],
        rules: {
          drillProjectName: [
            { required: true, message: "请输入演练项目", trigger: "blur" }
          ],
          organisedUnitId: [
            { required: true, message: "请选择主办单位", trigger: "blur" }
          ],
          drillNatureCode: [
            { required: true, message: "请选择演练性质", trigger: "blur" }
          ],
          drillTypeCode: [
            { required: true, message: "请选择演练类型", trigger: "blur" }
          ],
          planCompleteTime: [
            { required: true, message: "请选择计划完成时间", trigger: "blur" }
          ],
          drillUnit: [
            { required: true, message: "请选择参演单位", trigger: "blur" }
          ],
          drillContent: [
            { required: true, message: "请选择主要演练内容", trigger: "blur" }
          ]
        }
      },
      formConfig1: {
        formData: [
          {
            type: "input",
            label: "填报人",
            prop: "fillUser",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "input",
            label: "单位及部门",
            prop: "fillUserDept",
            class: "third",
            lableWidth: "140px",
            isDisabled: true
          },
          {
            type: "dataPicker",
            label: "填报时间",
            prop: "fillTime",
            class: "third",
            lableWidth: "140px",
            dateType: "datetime",
            isDisabled: true
          }
        ]
      },
      formConfig2: {
        formData: []
      }

    }
  };
};
export default { config };
